<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
        <title><?php //site_info('title'); ?></title>
        <link rel="stylesheet" type="text/css" href="contents/reset.css" />
        <link rel="stylesheet" type="text/css" href="contents/style.css" />
        <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
        <script type="text/javascript" src="contents/scripts/selectivizr.js"></script>
        <link rel="shortcut icon" href="contents/favicon.ico" />
        <link rel="icon" href="contents/favicon.ico" />
    </head>

    <body>
        <div id="wrap">
			<div id="header">
				<div id="logo"><a href="http://www.goianiamix.com.br/" title="<?php //site_info('title'); ?>">GoianiaMix</a></div>
			</div>
			<div id="main">
				<div id="left">
					<div id="clica_ai">Clica A&iacute;</div>
				</div>
				<div id="right">
					<div id="proximos_eventos">Pr&oacute;ximos Eventos</div>
					<div class="clear"></div>
					<div id="agenda">
						<?php
							$auxi = 0;
							$last_date = "";
							foreach ( $view_agenda_lista as $agenda_lista ):
								$auxi = 0;
								if($last_date != $agenda_lista['dia_da_semana']) {?>			
									<div class="data">
										<span class="<?php echo $agenda_lista['dia'][6]; ?>"></span>
										<span class="<?php echo $agenda_lista['dia'][7]; ?>"></span>
										<span class="barra"></span>
										<span class="<?php echo $agenda_lista['dia'][4]; ?>"></span>
										<span class="<?php echo $agenda_lista['dia'][5]; ?>"></span>
										<span class="<?php echo $agenda_lista['dia_da_semana']; ?>"></span>
										<?php echo $agenda_lista['dia_formatado']; ?>
									</div>
									<ul>
								<?php } ?>
								
									<li>
										<a href="#" title="<?php echo $agenda_lista['party_name']; ?>">
											<?php echo $agenda_lista['party_name']; ?>
										</a>
									</li>
							
								<?php if($last_date == $agenda_lista['dia_da_semana']) { 
									$auxi = 1;
									 echo "</ul>";
								}
							$last_date = $agenda_lista['dia_da_semana'];
							endforeach;
							if($auxi != 1){ echo "</ul>"; }
						?>
					</div>
				</div>
			</div>
		</div>
		<div id="footer"></div>
    </body>
</html>